﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OilReport_Mangage.aspx.cs"
    Inherits="admin_OilReport_Mangage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../styles/admin.css" rel="stylesheet" type="text/css" />
    <title>OilReport Management</title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="content_area">
        <h3>
            Date of Survey:<asp:Label ID="Date_label" runat="server" Text="" ForeColor="Red"></asp:Label></h3>
        <div class="form_box1">
				<asp:ScriptManager ID="ScriptManager2" runat="server">
				</asp:ScriptManager>
            <asp:UpdatePanel ID="oilStatusPanel" runat="server">
                <ContentTemplate>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:CheckBox ID="cbSelectAll" runat="server" AutoPostBack="True" 
                        oncheckedchanged="cbSelectAll_CheckedChanged" Text="Select All" 
                        TextAlign="Left" />
                <asp:Table ID="tb_report" runat="server">
                <asp:TableHeaderRow CssClass="header">
                    <asp:TableCell BorderWidth="1px" Text="Name"></asp:TableCell>
                    <asp:TableCell BorderWidth="1px" Text="UIN/Sample No"></asp:TableCell>
                    <asp:TableCell BorderWidth="1px" Text="Status"></asp:TableCell>
                    <asp:TableCell BorderWidth="1px" Text="DateSampled"></asp:TableCell>
                    <asp:TableCell BorderWidth="1px" Text="Results"></asp:TableCell>
                    <asp:TableCell BorderWidth="1px" Text="ReportDownload"></asp:TableCell>
                </asp:TableHeaderRow>
            </asp:Table>
            </ContentTemplate>
								<Triggers>
									<asp:AsyncPostBackTrigger ControlID="UpdateButton" />
								</Triggers>
            </asp:UpdatePanel>
        </div>
        <div class="form_box2">
            <table>
                <tr>
                    <td class="Li_buttonC1">
                        <asp:LinkButton ID="UpdateButton" runat="server" Text="UPDATE" OnClick="UpdateButton_Click" />
                    </td>
                    <td class="Li_buttonC1">
                        <%--<asp:Button ID="SendButton" runat="server" Text="SEND EMAIL" onclick="SendButton_Click" />--%>
                        <asp:HyperLink ID="emailLink" runat="server" NavigateUrl="EmailNotification.aspx?report_type=oil"
                            Target="_parent" Text="SEND EMAIL"></asp:HyperLink>
                        <%--<asp:HyperLink Target=_blank NavigateUrl="~/admin/EmailNotification.aspx" runat=server></asp:HyperLink>--%>
                    </td>
                    <td class="Li_buttonC1">
                        <asp:LinkButton ID="CHECKBUTTON" runat="server" Ponclick="CHECKBUTTON_Click" OnClick="CHECKBUTTON_Click"
                            Width="250px">RELOGIN TO CHECK UPDATE</asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div class="form_box2">
            <table>
                <tr>
                    <td colspan="2" class="fields2">
                        <asp:Label ID="Label1" runat="server" Text="New Sample" CssClass="label1"></asp:Label>(Choose
                        component from treeview leftside)
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="label1">
                        You have You have<asp:Label runat="server" ID="label_choose" ForeColor="Red" Text="NOT"></asp:Label>chosen component:
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="label1">
                        <asp:Label ID="component_label" runat="server" CssClass="fields1"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="label1">
                        SampleID:
                    </td>
                    <td>
                        <asp:TextBox ID="SampleID_tb" runat="server" CssClass="fields1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                        <asp:Button ID="AddButton" runat="server" Text="ADD" OnClick="AddButton_Click" CssClass="buttons" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Label ID="ErrMsg_lb" runat="server" CssClass="label2"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="label1">
                        INSTRUCTIONS:
                    </td>
                    <td class="label2">
                        * IF UIN exists in the table, Just tick it and update for testing;<br />
                        *Otherwise, Please Choose Component---&gt;Input sampleID----&gt;ADD;<br />
                        *Then tick it and update;
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
